package com.hckj.medical.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hckj
 * @since 2023-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户登录表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 手机号
     */
    @NotBlank(message = "您输入手机号不能为空,请重新输入")
    @Size(max=11, min=11 ,message = "您输入的手机号不符合规范")
    private String phone;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空!!!!")
    private String password;

    /**
     * 备用列1
     */
    private String spare1;

    /**
     * 备用列2
     */
    private String spare2;


}
